.naming-container {
  padding: 60rpx 40rpx;
  background: linear-gradient(180deg, #e4e1dc, #efeae4);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
}

.header {
  text-align: center;
  margin-bottom: 80rpx;
  // padding: 60rpx 0;
  width: 100%;
}

.header-image {
  width: 100%;
  max-width: 600rpx;
  height: auto;
}

.naming-form {
  // background-color: #fff;
  // border-radius: 40rpx;
  // padding: 60rpx;
  // box-shadow: 0 30rpx 80rpx rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 1200rpx;
}

.form-item {
  margin-bottom: 60rpx;
}

.label {
  display: block;
  font-size: 40rpx;
  font-weight: 600;
  color: #333;
  margin-bottom: 30rpx;
}

.picker-row {
  display: flex;
  gap: 40rpx;
}

.picker-display {
  flex: 1;
  padding: 36rpx 50rpx;
  border: 6rpx solid #e0e0e0;
  border-radius: 24rpx;
  background-color: #fafafa;
  font-size: 32rpx;
  color: #555;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.picker-display:hover {
  border-color: #667eea;
  background-color: #f0f4ff;
}

.picker-display.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.picker-display:after {
  content: "▼";
  float: right;
  color: #999;
  font-size: 32rpx;
}

.word-count-options {
  display: flex;
  gap: 40rpx;
  margin-top: 40rpx;
}

.word-count-option {
  flex: 1;
  text-align: center;
  padding: 30rpx;
  border: 6rpx solid #e0e0e0;
  border-radius: 24rpx;
  background-color: #fafafa;
  font-size: 36rpx;
  color: #555;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
}

.word-count-option:hover {
  border-color: #667eea;
  background-color: #f0f4ff;
}

.word-count-option.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-color: #667eea;
  font-weight: 600;
  transform: translateY(-6rpx);
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.1);
}

.input {
  padding: 36rpx 50rpx;
  border: 6rpx solid #e0e0e0;
  border-radius: 24rpx;
  background-color: #fafafa;
  font-size: 36rpx;
  color: #333;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  font-weight: 500;
}

.input:focus {
  border-color: #667eea;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 8rpx rgba(102, 126, 234, 0.1);
}

.submit-image-container {
  margin-top: 80rpx;
  width: 100%;
  text-align: center;
  cursor: pointer;
  min-height: 160rpx; /* 确保点击区域足够大 */
}

.submit-image {
  width: 100%;
  max-width: 600rpx;
  height: auto;
  pointer-events: none; /* 允许点击事件穿透到父容器 */
}

/* 弹窗样式 */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40rpx;
  border-bottom: 2rpx solid #eee;
}

.popup-title {
  font-size: 48rpx;
  font-weight: 600;
  color: #333;
}

.popup-close {
  font-size: 40rpx;
  color: #667eea;
  padding: 10rpx 20rpx;
  border-radius: 10rpx;
  cursor: pointer;
}

.popup-content {
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: 40rpx;
}

.option-list {
  padding: 20rpx 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20rpx;
  padding: 20rpx;
}

.option-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30rpx 10rpx;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 16rpx;
  border: 2rpx solid #f0f0f0;
}

.option-item:hover {
  background-color: #f5f5f5;
}

.option-item.selected {
  background-color: #e6f7ff;
}

.option-text {
  font-size: 40rpx;
  color: #333;
}

.option-check {
  color: #667eea;
  font-size: 40rpx;
  font-weight: bold;
}

.category-title {
  font-size: 44rpx;
  font-weight: 600;
  color: #333;
  padding: 30rpx 40rpx 20rpx;
  border-bottom: 2rpx solid #eee;
  margin-top: 20rpx;
}

.loading {
  text-align: center;
  padding: 40rpx;
  font-size: 36rpx;
  color: #666;
}

/* 自定义弹窗样式 */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-container {
  background-color: #fff;
  border-radius: 40rpx;
  width: 90%;
  height: 100vh;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.footer-images {
  margin-top: 60rpx;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40rpx;
}

.footer-image {
  width: 90%;
  max-width: 1000rpx;
  height: auto;
  border-radius: 20rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.1);
}

/* 弹窗样式 */
.submit-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  
  .popup-content {
    background: linear-gradient(180deg, #f9f7f5, #f5f1ec);
    border-radius: 40rpx;
    width: 80%;
    max-width: 700rpx;
    padding: 50rpx 40rpx;
    position: relative;
    box-shadow: 0 30rpx 80rpx rgba(0, 0, 0, 0.2);
    
    .close-icon {
      position: absolute;
      top: 30rpx;
      right: 30rpx;
      font-size: 40rpx;
      color: #999;
    }
    
    .popup-title {
      font-size: 40rpx;
      font-weight: 600;
      text-align: center;
      margin-bottom: 50rpx;
      color: #333;
    }
    
    .form-group {
      margin-bottom: 40rpx;
      
      .form-label {
        display: block;
        margin-bottom: 15rpx;
        font-size: 32rpx;
        font-weight: 500;
        color: #333;
      }
      
      .form-input {
        border: none;
        border-bottom: 1rpx solid #ccc;
        padding: 20rpx 10rpx;
        font-size: 32rpx;
        width: 100%;
        box-sizing: border-box;
        background: transparent;
        
        &:focus {
          border-bottom-color: #07c160;
        }
      }
    }
    
    .code-group {
      display: flex;
      align-items: flex-end;
      
      .code-input {
        flex: 1;
        margin-right: 20rpx;
      }
      
      .send-btn {
        background: linear-gradient(135deg, #f5d7bf, #e8c5a8);
        color: #8c5e3c;
        border: none;
        border-radius: 8rpx;
        padding: 0 25rpx;
        font-size: 28rpx;
        height: 80rpx;
        display: flex;
        align-items: center;
        font-weight: 500;
        box-shadow: 0 5rpx 15rpx rgba(140, 94, 60, 0.2);
        
        &.disabled {
          background: #e0d7cf;
          color: #a99e94;
          box-shadow: none;
        }
      }
    }
    
    .countdown-text {
      text-align: center;
      font-size: 26rpx;
      color: #8c5e3c;
      margin-top: 15rpx;
    }
    
    .submit-btn {
      background: linear-gradient(135deg, #d9b08c, #c19a78);
      color: white;
      border-radius: 50rpx;
      padding: 30rpx;
      text-align: center;
      font-size: 36rpx;
      font-weight: bold;
      margin-top: 40rpx;
      box-shadow: 0 10rpx 25rpx rgba(193, 154, 120, 0.3);
    }
  }
}

/* 名字建议弹窗样式 */
.name-suggestion-item {
  padding: 40rpx;
  margin-bottom: 30rpx;
  background: #fff;
  border-radius: 24rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.name-suggestion-item:active {
  transform: scale(0.98);
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.chinese-name {
  font-size: 48rpx;
  font-weight: bold;
  color: #333;
}

.english-name {
  font-size: 32rpx;
  color: #667eea;
  font-style: italic;
}

.pinyin {
  font-size: 28rpx;
  color: #888;
  margin-bottom: 20rpx;
}

/* 名字建议项样式 */
.name-suggestion-item {
  padding: 40rpx;
  margin-bottom: 30rpx;
  background: #fff;
  border-radius: 24rpx;
  box-shadow: 0 10rpx 30rpx rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.name-suggestion-item:active {
  transform: scale(0.98);
}

.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.chinese-name {
  font-size: 48rpx;
  font-weight: bold;
  color: #333;
}

.english-name {
  font-size: 32rpx;
  color: #667eea;
  font-style: italic;
}

.pinyin {
  font-size: 28rpx;
  color: #888;
  margin-bottom: 20rpx;
}

.desc {
  font-size: 32rpx;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20rpx;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16rpx;
}

.tag {
  font-size: 24rpx;
  padding: 8rpx 20rpx;
  background: #f0f4ff;
  color: #667eea;
  border-radius: 40rpx;
}

/* 名字建议弹窗容器样式 */
.name-suggestions-popup .popup-container {
  width: 85%;
  max-height: 80vh;
}

.name-suggestions-popup .popup-content {
  padding: 40rpx;
  padding-bottom: 120rpx; /* 确保最后一个项目完整显示 */
  margin-bottom: 40rpx; /* 额外增加底部空间 */
}

/* 名字建议项底部间距 */
.name-suggestion-item:last-child {
  margin-bottom: 60rpx;
}

.desc {
  font-size: 32rpx;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20rpx;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16rpx;
}

.tag {
  font-size: 24rpx;
  padding: 8rpx 20rpx;
  background: #f0f4ff;
  color: #667eea;
  border-radius: 40rpx;
}

/* 名字建议弹窗特殊样式 */
.name-suggestions-popup .popup-container {
  width: 85%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.name-suggestions-popup .popup-content {
  padding: 40rpx;
  padding-bottom: 120rpx;
  flex: 1;
  overflow-y: auto;
}
